from rest_framework.viewsets import ModelViewSet

from apps.goods.models import  SKUImage
from apps.meiduo_admin.paginations import MyPage
from apps.meiduo_admin.serializers.image_serializers import *


class ImageView(ModelViewSet):
    queryset = SKUImage.objects.all()
    serializer_class = ImageSerializers
    pagination_class = MyPage


class SKUImageView(ModelViewSet):
    queryset = SKU.objects.all()
    serializer_class = SKUImageSerializers
